<extend name="base"/>

<block name="extend">
<script language="javascript">
$(document).ready(product_obj.product_tuan); 
</script>

</block>


<block name="body">
<div id="news" class="r_con_wrap">
        <form class="r_con_search_form" id="search_form" action="{:U('Pintuan/list_tuan')}" method="post">
			
			
			时间：<input name="Time" value="{$time}" type="text" class="form_input" size="20" readonly="readonly">
             
			关键字：<input name="Keyword" value="{$keyword}" type="text" class="form_input" placeholder=" 团类型（人数）" size="15" >
			<input type="submit" class="search_btn" id="search_btn" value="搜索">
			<!-- <a href="{:U('Work/productExport')}"><input type="button" class="search_btn" id="export_btn" value="导出"></a> -->
			
		</form> 
        
        <table border="0" cellpadding="5" cellspacing="0" class="r_con_table">
            <thead>
                <tr>
                    <td width="10%" nowrap="nowrap">序号</td>
                    <td width="10%" nowrap="nowrap">商品名</td>
                    <td width="10%" nowrap="nowrap">成团类型</td>
                    <td width="10%" nowrap="nowrap">成团编号</td>
                    <td width="10%" nowrap="nowrap">开团人</td>
                    <td width="10%" nowrap="nowrap">已参团人数</td>
                    <td width="10%" nowrap="nowrap">成团价</td>
                    <td width="10%" nowrap="nowrap">成团状态</td>
                    
                    <td width="10%" nowrap="nowrap" class="last">操作</td>
                </tr>
            </thead>
            <tbody>
                <foreach name="grouparr" item="v" key="k">
                <tr >
                    <td nowrap="nowrap">{$k+1}</td>
                    <td nowrap="nowrap">{$v.productname}</td>
                    <td nowrap="nowrap">{$v.groupnumber}&nbsp;人团</td>
                    <td nowrap="nowrap">{$v.id}</td>
                    <td nowrap="nowrap">{$v.buyername}</td>
                    <td nowrap="nowrap">{$v.hasjoin}</td>
                    
                     <td nowrap="nowrap">{$v.price}</td>
	                 
                     <td nowrap="nowrap">
	                      <if condition="$v['status'] eq 1">正在进行
		                    <elseif condition="$v['status'] eq 2"/>已成团
		                    <elseif condition="$v['status'] eq 3"/>已发货
		                    <elseif condition="$v['status'] eq 4"/>已完成
		                    <elseif condition="$v['status'] eq 5"/>已取消
		                    <else />已过期
		                  </if>
                     </td>
                    
                     
                    <td class="last" nowrap="nowrap">
                    
                    	 <a href="{:U('detail_tuan',array('id'=>$v['id']))}"><img src="__PUBLIC__/Member/images/ico/view.gif" align="absmiddle" alt="查看"  title="查看"/></a>
                    	<if condition="$v.status gt 3"><a href="{:U('delete_tuan',array('id'=>$v['id']))}" title="删除" onClick="if(!confirm('删除后不可恢复，继续吗？')){return false};"><img src="__PUBLIC__/Member/images/ico/del.gif" align="absmiddle" /></a></if>
                    	<if condition="$v.status eq 2"><a href="#" id="{$v.id}"><img src="__PUBLIC__/Member/images/ico/duigou.png" align="absmiddle" alt="去发货"  title="去发货"/></a></if>
                    	
                    </td>
                </tr>
                </foreach>
            </tbody>
        </table>
        <div class="blank20"></div>
        <div id="turn_page">{$page}</div>
    </div>  

    </block>